package sctu.edu.java.year2016.team08.chenjing.day20160521.chapter4_1;

import java.util.Scanner;

/**定义一个x，并判断是不是偶数。
 * Created by AD on 2016/5/21.
 */

public class Jiou {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入x的值：");
        int x = scan.nextInt();
        if (x % 2 == 0)
            System.out.println("x是偶数");
        else
            System.out.println("x是奇数");
    }

}
